﻿namespace Kay.Nuget.Helper
{
    /// <summary>
    /// 说明文件对应根节点
    /// </summary>
    public class package
    {
        /// <summary>
        /// 子节点
        /// </summary>
        public metadata metadata { get; set; }
    }

    /// <summary>
    /// 说明文件对应节点
    /// </summary>
    public class metadata
    {
        /// <summary>
        /// 产品 ID
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        public string version { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }

        /// <summary>
        /// 作者
        /// </summary>
        public string authors { get; set; }

        /// <summary>
        /// 拥有者（公司）
        /// </summary>
        public string owners { get; set; }

        /// <summary>
        /// 许可证地址
        /// </summary>
        public string licenseUrl { get; set; }

        /// <summary>
        /// 项目地址
        /// </summary>
        public string projectUrl { get; set; }

        /// <summary>
        /// 图标地址
        /// </summary>
        public string iconUrl { get; set; }

        /// <summary>
        /// 是否需要同意许可证
        /// </summary>
        public bool requireLicenseAcceptance { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        public string description { get; set; }

        /// <summary>
        /// 发布说明
        /// </summary>
        public string releaseNotes { get; set; }

        /// <summary>
        /// 版权
        /// </summary>
        public string copyright { get; set; }

        /// <summary>
        /// 标签（空格分隔）
        /// </summary>
        public string tags { get; set; }
    }
}
